import type { UserInfo } from "@/store/user";
import { request } from "./request"

export const apiLogin = (data: string) => {
    return request<UserInfo>('user/login', 'POST', {code: data});
}

export const apiUpdateUser = (data: any) => {
    return request('user/update', 'POST', data);
}